package com.ytjj.qmyx.mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 商城启动类
 *
 */
@SpringBootApplication(scanBasePackages={"com.ytjj.qmyx.mall","com.ytjj.common.utils.feishu"})
@EnableFeignClients(basePackages = "com.ytjj.qmyx.*.client")
@MapperScan(basePackages = {"com.ytjj.qmyx.mall.mapper","com.ytjj.qmyx.mall.dao", "com.ytjj.qmyx.users.mapper"})
@EnableCaching
@EnableAsync
public class QmyxMallApplication {

    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(QmyxMallApplication.class, args);
    }

}
